package com.pactera.madp.admin.api.feign;

import com.pactera.madp.admin.api.entity.SysFile;
import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import com.pactera.madp.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 文件记录远程调用
 */
@FeignClient(contextId = "remoteFileLogService", value = ServiceNameConstants.UPMS_SERVICE)
public interface RemoteFileService {

    @PostMapping("/sys-file")
    public R<Boolean> saveFile(@RequestBody SysFile sysFile, @RequestHeader(SecurityConstants.FROM) String from);

}
